<?php 

namespace app\common\validate\ywUser;

use think\Validate;

class UserIcCard extends Validate 
{ 
    protected $rule = [
        'ic_number' => 'require',
        'uid' => 'require',
        'equipment_door_id' => 'require',
        'carry_number' => 'require',
        'pay_card_number' => 'require',
    ];

    protected $message = [
        'ic_number.require' => '请输入ic卡号',
        'uid.require' => '请输入用户ID',
        'equipment_door_id.require' => '请输入设备出入口ID',
        'carry_number.require' => '请输入可携带人数',
        'pay_card_number.require' => '请输入可刷卡次数',
    ];

    protected $scene = [
        'edit' => ['ic_number','uid','equipment_door_id','carry_number','pay_card_number','admin_name','remark','id'],
        'add' => ['ic_number','uid','equipment_door_id','carry_number','pay_card_number','admin_name','remark'],
    ];

} 
